package s2elinshu;

public class Calculator0401 {
	// bookVO
    // bookService
    // bookServiceImpl

    public static void main(String[] args) {
    bookVO bvo = new bookVO("123-45", "나비", "010-3456-7890", "요긴어디?");
   
    System.out.println(bvo.toString());     
    bookServiceImpl bs = new bookServiceImpl();
     System.out.println(bs.isRent(bvo));
    }   // public static void main
}   // public class J20140401book

class bookVO{
    private String mno;
    private String name;
    private String tel;
    private String address;
    private boolean isRent;
    
    public bookVO(String mno,String name,String tel,String address) {
            this.mno = mno;
            this.name = name;
            this.tel = tel;
            this.address = address;
    }

    public String getMno() {return mno;}
    public void setMno(String mno) {this.mno = mno;}
    public String getName() {return name;}
    public void setName(String name) {this.name = name;}
    public String getTel() {return tel;}
    public void setTel(String tel) {this.tel = tel;}
    public String getAddress() {return address;}
    public void setAddress(String address) {this.address = address;}        
    public boolean isRent() {return isRent;}
    public void setRent(boolean isRent) {this.isRent = isRent;}

    @Override
    public String toString() {
            String result = "";
            result += mno+"/"+name+"/"+tel+"/"+address+"/";
            return result;
    }
}  // class bookVO

interface BookService{
    public boolean isRent(bookVO bvo);
}

class bookServiceImpl implements BookService {

    @Override
    public boolean isRent(bookVO bvo) {
            System.out.println("대여중입니다.");
            return false;
    }

}